<?php
include "../lib/DAL/DmCaHoc.php";
class DmCaHocBLL{
    function __construct(){
        
    }
    
    function __destruct(){
        
    }
    
    function setDmCaHocBLL($row){
        $cahoc= new DmCaHoc();
        $cahoc->setDmCaHoc($row['madm_ca'],$row['khungthoigian']);
        return $cahoc;
         
    }

    public function getListDmCaHoc(){
      $result = mysql_query("select * from dm_cahoc");
      $arr_cahoc= array();
      
      while($row = mysql_fetch_array($result)){
        $arr_cahoc[] =  $this->setDmCaHocBLL($row);
      }
      return $arr_cahoc;
    }
    
    
    
}

?>